package com.ymatou.iapi.liveseller.testcase;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

import org.json.JSONObject;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.google.gson.JsonArray;
import com.ymatou.iapi.liveseller.parameter.LiveProductListBean;
import com.ymatou.iapi.liveseller.service.LiveProductListCall;
import com.ymatou.iapi.trading.operate.parameter.PlaceOrderService;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.business.service.LiveRoomCallService;
import com.ymttest.business.service.SellerProductCallService;
import com.ymttest.database.annotation.SqlMapperFactory;
import com.ymttest.database.model.LiveRoom;
import com.ymttest.database.model.Userinfo;
import com.ymttest.database.sqlwapper.JUserWapper;
import com.ymttest.database.sqlwapper.LiveRoomWapper;
/**
*直播商品列表
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_LiveProductList{
	private static LiveProductListBean liveproductlistBean;
	private static LiveProductListCall liveproductlistCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("直播商品列表");
	}

	@Before
	public void caseUp() {
		liveproductlistBean=new LiveProductListBean();
		liveproductlistCall=new LiveProductListCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(liveproductlistCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	//直播商品列表逻辑业务验证优先
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_LiveProductList_001() {
		Logger.start(true,"查询可售直播商品列表成功");
		try {
			List<Userinfo> list = new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			List<String> ProductIdList = new ArrayList<>();
			int count = 10;
			for (int i = 0; i < count; i++) {
				String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
				
				Logger.comment("创建商品：" + pid);
				ProductIdList.add(pid);
			}
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), ProductIdList);
			Collections.shuffle(ProductIdList);
			LiveRoomCallService.SortLiveProduct(createlive.getId(), createlive.getUserId(), ProductIdList);
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(1);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			Logger.verifyEquals(10, liveproductlistCall.getProductList().size(), "验证有1个商品");
			JsonArray plist = liveproductlistCall.getProductList();
			for (int i=0;i<plist.size();i++) {
				Logger.verifyEquals(ProductIdList.get(i),plist.get(i).getAsJsonObject().get("ProductId").getAsString(),"验证商品id");
			}
			
			Logger.verifyEquals(10, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P3.class})
	@TestCase
	public void Tc_LiveProductList_002() {
		Logger.start(true,"不输入liveid失败");
		try {
			liveproductlistBean.setUserId(1);
			liveproductlistBean.setTabIndex(1);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("400", liveproductlistCall.getString("Code"), "验证Code");
			Logger.verifyIsContains("直播Id不能为空", liveproductlistCall.getString("Msg"), "验证Msg");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P3.class})
	@TestCase
	public void Tc_LiveProductList_003() {
		Logger.start(true,"不输入Userid失败");
		try {
			liveproductlistBean.setLiveId(1);
			liveproductlistBean.setTabIndex(1);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("400", liveproductlistCall.getString("Code"), "验证Code");
			Logger.verifyEquals("买手Id不能为空", liveproductlistCall.getString("Msg"), "验证Msg");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_004() {
		Logger.start(true,"liveid和userid不匹配失败");
		try {
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId()+1);
			liveproductlistBean.setTabIndex(1);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("201", liveproductlistCall.getString("Code"), "验证Code");
			Logger.verifyIsContains("不合法", liveproductlistCall.getString("Msg"), "验证Msg");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P3.class})
	@TestCase
	public void Tc_LiveProductList_005() {
		Logger.start(true,"不输入TabIndex失败");
		try {
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
//			liveproductlistBean.setTabIndex(1);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("400", liveproductlistCall.getString("Code"), "验证Code");
			Logger.verifyIsContains("参数错误", liveproductlistCall.getString("Msg"), "验证Msg");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_006() {
		Logger.start(true,"查询售罄直播商品列表成功");
		try {
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid = PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 1);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
			SellerProductCallService.updateAllStockNumAs0(uinfo.getUserId(), pid);
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(2);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			Logger.verifyEquals(1, liveproductlistCall.getProductList().size(), "验证有1个商品");
			Logger.verifyEquals(pid,liveproductlistCall.getProductList().get(0).getAsJsonObject().get("ProductId").getAsString(),"验证商品id");
			Logger.verifyEquals(0, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(1, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_007() {
		Logger.start(true,"查询暂停销售直播商品列表成功");
		try {
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid = PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 1);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
			LiveRoomCallService.SuspendLiveProduct(createlive.getId(), pid);
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(3);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			Logger.verifyEquals(1, liveproductlistCall.getProductList().size(), "验证有1个商品");
			Logger.verifyEquals(pid,liveproductlistCall.getProductList().get(0).getAsJsonObject().get("ProductId").getAsString(),"验证商品id");
			Logger.verifyEquals(0, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(1, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_008() {
		Logger.start(true,"模糊搜索商品成功");
		try {
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(1);
			liveproductlistBean.setProductName("自动化测试");
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			Logger.verifyEquals(1, liveproductlistCall.getProductList().size(), "验证有1个商品");
			Logger.verifyEquals(pid,liveproductlistCall.getProductList().get(0).getAsJsonObject().get("ProductId").getAsString(),"验证商品id");
			Logger.verifyEquals(1, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_009() {
		Logger.start(true,"status9直播推流结束查询商品成功");
		try {
			//正常结束的时候商品列表全部变成暂停销售状态
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
			LiveRoomCallService.SellerLiveOnline(createlive.getId(), createlive.getUserId());
			new LiveRoomWapper().updateLiveRoomPushStatus(createlive.getId(), 9);
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(1);
			liveproductlistBean.setProductName("自动化测试");
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			Logger.verifyEquals(1, liveproductlistCall.getProductList().size(), "验证有1个商品");
			Logger.verifyEquals(pid,liveproductlistCall.getProductList().get(0).getAsJsonObject().get("ProductId").getAsString(),"验证商品id");
			Logger.verifyEquals(1, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_010() {
		Logger.start(true,"未推流status7系统关闭查询商品失败不返回商品");
		try {
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
//			LiveRoomCallService.SellerLiveOnline(createlive.getId(), createlive.getUserId());
			LiveRoomCallService.SysCloseLive(createlive.getId());
			
			LiveRoom room = new LiveRoomWapper().selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(7, room.getLiveStatus(), "验证状态");
			
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(1);
			liveproductlistBean.setProductName("自动化测试");
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			Logger.verifyEquals(0, liveproductlistCall.getProductList().size(), "验证有0个商品");
			Logger.verifyEquals(0, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_011() {
		Logger.start(true,"status8未推流关闭直播查询商品失败不返回商品");
		try {
			//异常关闭结束的时候商品列表全部移除
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
//			LiveRoomCallService.SellerLiveOnline(createlive.getId(), createlive.getUserId());
			LiveRoomCallService.AutoCloseLiveRoomByUserId(createlive.getUserId());
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(3);
			liveproductlistBean.setProductName("自动化测试");
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			Logger.verifyEquals(0, liveproductlistCall.getProductList().size(), "验证有1个商品");
			Logger.verifyEquals(0, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	//运营接口尚未完成
	public void Tc_LiveProductList_012() {
		Logger.start(true,"status10运营关闭直播查询商品失败不返回商品");
		try {
			//TODO 补全case代码
			org.junit.Assert.fail();
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_LiveProductList_013() {
		Logger.start(true,"推过流status7系统关闭查询商品返回暂停销售");
		try {
			List<Userinfo> list =new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
			
			Logger.comment("创建商品：" + pid);
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), pid);
			LiveRoomCallService.SellerLiveOnline(createlive.getId(), createlive.getUserId());
			LiveRoomCallService.SysCloseLive(createlive.getId());
			
			LiveRoom room = new LiveRoomWapper().selectLiveRoomById(createlive.getId());
			Logger.verifyEquals(7, room.getLiveStatus(), "验证状态");
			
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(1);
			liveproductlistBean.setProductName("自动化测试");
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			//1215需求不下架
			Logger.verifyEquals(1, liveproductlistCall.getProductList().size(), "验证有商品");
			Logger.verifyEquals(1, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_LiveProductList_014() {
		Logger.start(true,"上线后查询可售直播商品列表成功,顺序正确");
		try {
			List<Userinfo> list = new JUserWapper().select1KSeller();
			Userinfo uinfo = list.get(new Random().nextInt(list.size() - 1));
			SqlMapperFactory.getIntergratedProductMapper().updateProductoffSale(uinfo.getUserId());
			List<String> ProductIdList = new ArrayList<>();
			int count = 10;
			for (int i = 0; i < count; i++) {
				String pid =PlaceOrderService.getNewProductId(uinfo.getLoginId(), uinfo.getUserId(), 10);
				
				Logger.comment("创建商品：" + pid);
				ProductIdList.add(pid);
			}
			LiveRoom createlive = LiveRoomCallService.CreateSellerLive(LiveRoomCallService.initCreatesellerliveBean(uinfo));
			LiveRoomCallService.AddProductsToLive(createlive.getId(), createlive.getUserId(), ProductIdList);
			Collections.shuffle(ProductIdList);
			LiveRoomCallService.SortLiveProduct(createlive.getId(), createlive.getUserId(), ProductIdList);
			LiveRoomCallService.SellerLiveOnline(createlive.getId(), createlive.getUserId());
			liveproductlistBean.setLiveId(createlive.getId());
			liveproductlistBean.setUserId(createlive.getUserId());
			liveproductlistBean.setTabIndex(1);
			liveproductlistCall.setData(liveproductlistBean);
			liveproductlistCall.callService();			
			Logger.verifyEquals("200", liveproductlistCall.getString("Code"), "验证Code");
			
			Logger.verifyEquals(10, liveproductlistCall.getProductList().size(), "验证有1个商品");
			JsonArray plist = liveproductlistCall.getProductList();
			for (int i=0;i<plist.size();i++) {
				Logger.verifyEquals(ProductIdList.get(i),plist.get(i).getAsJsonObject().get("ProductId").getAsString(),"验证商品id");
			}
			
			Logger.verifyEquals(10, liveproductlistCall.getOnsaleCount(), "验证getOnsaleCount");
			Logger.verifyEquals(0, liveproductlistCall.getSuspendCount(), "验证SuspendCount");
			Logger.verifyEquals(0, liveproductlistCall.getSoldOutCount(), "验证SoldOutCount");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}